package com.qikux.dao;

import com.qikux.dto.ResourceDTO;
import com.qikux.entity.Resource;
import com.qikux.entity.ResourceType;
import com.qikux.vo.PageVo;

import java.util.List;

public interface ResourceDao {
    List<ResourceType> findTypes();

    int saveResource(Resource resource);

    List<ResourceDTO> findResourceByTypeId(Long typeId, PageVo<ResourceDTO> pageVo);

    long findResourceByTypeIdCount(Long typeId);
}
